API Manager API
Adding a tier
To add a tier, you need at least the “Manage Contracts” permission.
curl -X POST \
https://anypoint.mulesoft.com/apimanager/api/v1/organizations/:organizationId/environments/:environmentId/apis/:environmentApiId/tiers \
-H 'authorization: Bearer OMITTED' \
-H 'content-type: application/json' \
-d '{
{
"apiVersionId": <:apiVersionId>,
"status": "ACTIVE",
"autoApprove": true,
"limits": [
{
"visible": true,
"timePeriodInMilliseconds": 36000000,
"maximumRequests": 10
},
{
"visible": true,
"maximumRequests": 20,
"timePeriodInMilliseconds": 1800000
}
],
"name": "Example tier",
"description": "Description optional"
}
}'
- status: "ACTIVE" or "DEPRECATED"
- autoApprove: if it is "true", the approvals will be automatic. If it is "false", they will be manual
- description is optional
- You may add as many limits as you want (There must be at least one with "visible": "true")